public abstract class Protocol<INFRA_STRUCTURE> extends Lifecycle implements IProtocol2<INFRA_STRUCTURE>, IExecutorServiceProvider
ILocationAware.Location
ILifecycle.DeferrableActivation
UNSPECIFIED_VERSION
Constructor and Description |
---|
Protocol(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
protected void |
doBeforeActivate() |
protected void |
doDeactivate() |
IBufferProvider |
getBufferProvider() |
IChannel |
getChannel() |
java.util.concurrent.ExecutorService |
getExecutorService() |
INFRA_STRUCTURE |
getInfraStructure() |
ILocationAware.Location |
getLocation()
|
java.lang.String |
getType() |
java.lang.String |
getUserID() |
int |
getVersion() |
protected void |
handleChannelDeactivation() |
boolean |
isClient()
|
boolean |
isServer()
|
void |
setChannel(IChannel newChannel) |
void |
setExecutorService(java.util.concurrent.ExecutorService executorService) |
void |
setInfraStructure(INFRA_STRUCTURE infraStructure) |
protected void |
setUserID(java.lang.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 final java.lang.String getType()
getType
in interface IProtocol<INFRA_STRUCTURE>
public int getVersion()
getVersion
in interface IProtocol2<INFRA_STRUCTURE>
public java.util.concurrent.ExecutorService getExecutorService()
getExecutorService
in interface IProtocol<INFRA_STRUCTURE>
getExecutorService
in interface IExecutorServiceProvider
public void setExecutorService(java.util.concurrent.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 java.lang.String getUserID()
getUserID
in interface IUserAware
protected void setUserID(java.lang.String userID)
protected void handleChannelDeactivation()
protected void doBeforeActivate() throws java.lang.Exception
doBeforeActivate
in class Lifecycle
java.lang.Exception
protected void doDeactivate() throws java.lang.Exception
doDeactivate
in class Lifecycle
java.lang.Exception
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html