Package io.gridgo.core.impl
Class AbstractProcessor
- java.lang.Object
-
- io.gridgo.framework.impl.AbstractComponentLifecycle
-
- io.gridgo.connector.impl.AbstractMessageComponent
-
- io.gridgo.core.impl.AbstractProcessor
-
- All Implemented Interfaces:
Processor,ContextAwareComponent,io.gridgo.framework.ComponentLifecycle,io.gridgo.framework.NamedComponent,io.gridgo.utils.helper.Loggable
- Direct Known Subclasses:
AbstractPojoProcessor
public abstract class AbstractProcessor extends io.gridgo.connector.impl.AbstractMessageComponent implements Processor, ContextAwareComponent
-
-
Constructor Summary
Constructors Constructor Description AbstractProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<io.gridgo.bean.BValue>generateId()java.lang.StringgenerateName()GridgoContextgetContext()protected voidonStart()protected voidonStop()voidsetContext(GridgoContext context)GatewaywithGateway(java.lang.String name)-
Methods inherited from class io.gridgo.connector.impl.AbstractMessageComponent
attachSource, createMessage, createMessage, createMessage, createMessage, ensurePayloadId, ensurePayloadId
-
Methods inherited from class io.gridgo.framework.impl.AbstractComponentLifecycle
getName, isStarted, start, stop, toString
-
-
-
-
Method Detail
-
withGateway
public Gateway withGateway(java.lang.String name)
-
generateName
public java.lang.String generateName()
- Specified by:
generateNamein classio.gridgo.framework.impl.AbstractComponentLifecycle
-
generateId
protected java.util.Optional<io.gridgo.bean.BValue> generateId()
- Specified by:
generateIdin classio.gridgo.connector.impl.AbstractMessageComponent
-
onStart
protected void onStart()
- Specified by:
onStartin classio.gridgo.framework.impl.AbstractComponentLifecycle
-
onStop
protected void onStop()
- Specified by:
onStopin classio.gridgo.framework.impl.AbstractComponentLifecycle
-
getContext
public GridgoContext getContext()
-
setContext
public void setContext(GridgoContext context)
- Specified by:
setContextin interfaceContextAwareComponent
-
-