public abstract class AbstractNioAcceptor extends Object implements BridgeAcceptor
| Modifier and Type | Field and Description |
|---|---|
protected BridgeServiceFactory |
bridgeServiceFactory |
protected Properties |
configuration |
protected org.slf4j.Logger |
logger |
static String |
PARENT_KEY |
protected org.kaazing.gateway.resource.address.ResourceAddressFactory |
resourceAddressFactory |
static String |
TCP_SESSION_KEY |
| Constructor and Description |
|---|
AbstractNioAcceptor(Properties configuration,
org.slf4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.kaazing.gateway.resource.address.ResourceAddress address,
org.apache.mina.core.service.IoHandler handler,
BridgeSessionInitializer<? extends org.apache.mina.core.future.IoFuture> initializer) |
void |
dispose() |
boolean |
emptyBindings() |
org.apache.mina.core.service.IoHandler |
getHandler(org.kaazing.gateway.resource.address.ResourceAddress address) |
protected abstract String |
getTransportName() |
protected void |
init() |
protected abstract org.kaazing.mina.core.service.IoAcceptorEx |
initAcceptor(org.apache.mina.core.session.IoSessionInitializer<? extends org.apache.mina.core.future.IoFuture> initializer) |
protected void |
initIfNecessary() |
void |
setBridgeServiceFactory(BridgeServiceFactory bridgeServiceFactory) |
void |
setResourceAddressFactory(org.kaazing.gateway.resource.address.ResourceAddressFactory factory) |
void |
setSchedulerProvider(org.kaazing.gateway.util.scheduler.SchedulerProvider provider) |
org.kaazing.mina.core.future.UnbindFuture |
unbind(org.kaazing.gateway.resource.address.ResourceAddress address) |
protected org.kaazing.gateway.resource.address.ResourceAddressFactory resourceAddressFactory
protected BridgeServiceFactory bridgeServiceFactory
protected final Properties configuration
protected final org.slf4j.Logger logger
public static final String TCP_SESSION_KEY
public static final String PARENT_KEY
public AbstractNioAcceptor(Properties configuration, org.slf4j.Logger logger)
public void setBridgeServiceFactory(BridgeServiceFactory bridgeServiceFactory)
public void setResourceAddressFactory(org.kaazing.gateway.resource.address.ResourceAddressFactory factory)
public boolean emptyBindings()
protected final void init()
public final void setSchedulerProvider(org.kaazing.gateway.util.scheduler.SchedulerProvider provider)
public org.apache.mina.core.service.IoHandler getHandler(org.kaazing.gateway.resource.address.ResourceAddress address)
getHandler in interface BridgeAcceptorpublic void bind(org.kaazing.gateway.resource.address.ResourceAddress address,
org.apache.mina.core.service.IoHandler handler,
BridgeSessionInitializer<? extends org.apache.mina.core.future.IoFuture> initializer)
throws NioBindException
bind in interface BridgeAcceptorNioBindExceptionpublic org.kaazing.mina.core.future.UnbindFuture unbind(org.kaazing.gateway.resource.address.ResourceAddress address)
unbind in interface BridgeAcceptorprotected final void initIfNecessary()
public void dispose()
dispose in interface BridgeServiceprotected abstract org.kaazing.mina.core.service.IoAcceptorEx initAcceptor(org.apache.mina.core.session.IoSessionInitializer<? extends org.apache.mina.core.future.IoFuture> initializer)
protected abstract String getTransportName()
Copyright © 2014–2015. All rights reserved.