Class DefaultTopicBinder<T>
- java.lang.Object
-
- io.micronaut.coherence.messaging.binders.DefaultTopicBinder<T>
-
- Type Parameters:
T- The target generic type
- All Implemented Interfaces:
ElementBinder<T>,io.micronaut.core.bind.ArgumentBinder<T,com.tangosol.net.topic.Subscriber.Element<?>>
public class DefaultTopicBinder<T> extends java.lang.Object implements ElementBinder<T>
The default binder that binds the Kafka value for aSubscriber.Element.- Since:
- 1.0
- Author:
- Jonathan Knight
-
-
Constructor Summary
Constructors Constructor Description DefaultTopicBinder()Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micronaut.core.bind.ArgumentBinder.BindingResult<T>bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, com.tangosol.net.topic.Subscriber.Element<?> element)static <T> DefaultTopicBinder<T>instance()Returns the singletonDefaultTopicBinderinstance.
-
-
-
Method Detail
-
bind
public io.micronaut.core.bind.ArgumentBinder.BindingResult<T> bind(io.micronaut.core.convert.ArgumentConversionContext<T> context, com.tangosol.net.topic.Subscriber.Element<?> element)
- Specified by:
bindin interfaceio.micronaut.core.bind.ArgumentBinder<T,com.tangosol.net.topic.Subscriber.Element<?>>
-
instance
public static <T> DefaultTopicBinder<T> instance()
Returns the singletonDefaultTopicBinderinstance.- Type Parameters:
T- the argument type- Returns:
- the singleton
DefaultTopicBinderinstance
-
-