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.String
generateName()
GridgoContext
getContext()
protected void
onStart()
protected void
onStop()
void
setContext(GridgoContext context)
Gateway
withGateway(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:
generateName
in classio.gridgo.framework.impl.AbstractComponentLifecycle
-
generateId
protected java.util.Optional<io.gridgo.bean.BValue> generateId()
- Specified by:
generateId
in classio.gridgo.connector.impl.AbstractMessageComponent
-
onStart
protected void onStart()
- Specified by:
onStart
in classio.gridgo.framework.impl.AbstractComponentLifecycle
-
onStop
protected void onStop()
- Specified by:
onStop
in classio.gridgo.framework.impl.AbstractComponentLifecycle
-
getContext
public GridgoContext getContext()
-
setContext
public void setContext(GridgoContext context)
- Specified by:
setContext
in interfaceContextAwareComponent
-
-