Package io.mats3.impl.jms
Class JmsMatsContextLocalCallback
java.lang.Object
io.mats3.impl.jms.JmsMatsContextLocalCallback
- All Implemented Interfaces:
BiFunction<Class<?>,
String[], Object>
public class JmsMatsContextLocalCallback
extends Object
implements BiFunction<Class<?>,String[],Object>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
bindResource
(Object key, Object value) Binds a ThreadLocal resource.static Object
getResource
(Object key) Retrieves a ThreadLocal-bound resource, bound withbindResource(Object, Object)
.static void
unbindResource
(Object key) Removes a ThreadLocal-bound resource, bound withbindResource(Object, Object)
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
JmsMatsContextLocalCallback
public JmsMatsContextLocalCallback()
-
-
Method Details
-
bindResource
Binds a ThreadLocal resource. -
getResource
Retrieves a ThreadLocal-bound resource, bound withbindResource(Object, Object)
. -
unbindResource
Removes a ThreadLocal-bound resource, bound withbindResource(Object, Object)
. -
apply
- Specified by:
apply
in interfaceBiFunction<Class<?>,
String[], Object>
-