public abstract class Protocol<INFRA_STRUCTURE> extends Lifecycle implements IProtocol2<INFRA_STRUCTURE>
ILocationAware.Location
ILifecycle.DeferrableActivation
UNSPECIFIED_VERSION
Modifier and Type | Method and Description |
---|---|
protected void |
doBeforeActivate() |
protected void |
doDeactivate() |
IBufferProvider |
getBufferProvider() |
IChannel |
getChannel() |
ExecutorService |
getExecutorService() |
INFRA_STRUCTURE |
getInfraStructure() |
ILocationAware.Location |
getLocation()
|
String |
getType() |
String |
getUserID() |
int |
getVersion() |
protected void |
handleChannelDeactivation() |
boolean |
isClient()
|
boolean |
isServer()
|
void |
setChannel(IChannel newChannel) |
void |
setExecutorService(ExecutorService executorService) |
void |
setInfraStructure(INFRA_STRUCTURE infraStructure) |
protected void |
setUserID(String userID) |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
handleBuffer
addListener, getListeners, hasListeners, removeListener
public Protocol(String type)
public final String getType()
getType
in interface IProtocol<INFRA_STRUCTURE>
public int getVersion()
getVersion
in interface IProtocol2<INFRA_STRUCTURE>
public ExecutorService getExecutorService()
getExecutorService
in interface IProtocol<INFRA_STRUCTURE>
public void setExecutorService(ExecutorService executorService)
setExecutorService
in interface IProtocol<INFRA_STRUCTURE>
public IBufferProvider getBufferProvider()
getBufferProvider
in interface IProtocol<INFRA_STRUCTURE>
public INFRA_STRUCTURE getInfraStructure()
getInfraStructure
in interface IProtocol<INFRA_STRUCTURE>
public void setInfraStructure(INFRA_STRUCTURE infraStructure)
setInfraStructure
in interface IProtocol<INFRA_STRUCTURE>
public ILocationAware.Location getLocation()
ILocationAware
getLocation
in interface ILocationAware
public boolean isClient()
ILocationAware
isClient
in interface ILocationAware
public boolean isServer()
ILocationAware
isServer
in interface ILocationAware
public IChannel getChannel()
getChannel
in interface IProtocol<INFRA_STRUCTURE>
public void setChannel(IChannel newChannel)
setChannel
in interface IProtocol<INFRA_STRUCTURE>
public String getUserID()
getUserID
in interface IUserAware
protected void setUserID(String userID)
protected void handleChannelDeactivation()
protected void doBeforeActivate() throws Exception
doBeforeActivate
in class Lifecycle
Exception
protected void doDeactivate() throws Exception
doDeactivate
in class Lifecycle
Exception
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.