Class SchedulingInterceptor
- java.lang.Object
-
- io.fluxcapacitor.javaclient.scheduling.SchedulingInterceptor
-
- All Implemented Interfaces:
DispatchInterceptor,HandlerInterceptor
public class SchedulingInterceptor extends Object implements DispatchInterceptor, HandlerInterceptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HandlerInterceptor
HandlerInterceptor.InterceptedHandler, HandlerInterceptor.MergedInterceptor
-
-
Field Summary
Fields Modifier and Type Field Description static StringscheduleIdMetadataKey
-
Constructor Summary
Constructors Constructor Description SchedulingInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitializePeriodicSchedule(Class<?> payloadType, Periodic periodic)Function<Message,SerializedMessage>interceptDispatch(Function<Message,SerializedMessage> function, MessageType messageType)Function<DeserializingMessage,Object>interceptHandling(Function<DeserializingMessage,Object> function, Handler<DeserializingMessage> handler, String consumer)Handler<DeserializingMessage>wrap(Handler<DeserializingMessage> handler, String consumer)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fluxcapacitor.javaclient.publishing.DispatchInterceptor
merge
-
Methods inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HandlerInterceptor
merge
-
-
-
-
Field Detail
-
scheduleIdMetadataKey
public static String scheduleIdMetadataKey
-
-
Method Detail
-
wrap
public Handler<DeserializingMessage> wrap(Handler<DeserializingMessage> handler, String consumer)
- Specified by:
wrapin interfaceHandlerInterceptor
-
initializePeriodicSchedule
protected void initializePeriodicSchedule(Class<?> payloadType, Periodic periodic)
-
interceptDispatch
public Function<Message,SerializedMessage> interceptDispatch(Function<Message,SerializedMessage> function, MessageType messageType)
- Specified by:
interceptDispatchin interfaceDispatchInterceptor
-
interceptHandling
public Function<DeserializingMessage,Object> interceptHandling(Function<DeserializingMessage,Object> function, Handler<DeserializingMessage> handler, String consumer)
- Specified by:
interceptHandlingin interfaceHandlerInterceptor
-
-