public abstract class AbstractServerSocketAppender<E> extends AppenderBase<E>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BACKLOG
Default
ServerSocket backlog |
static int |
DEFAULT_CLIENT_QUEUE_SIZE
Default queue size used for each client
|
Constructor and Description |
---|
AbstractServerSocketAppender() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Gets the local address for the listener.
|
int |
getBacklog()
Gets the listener queue depth.
|
int |
getClientQueueSize()
Gets the event queue size used for each client connection.
|
int |
getPort()
Gets the local port for the listener.
|
void |
setAddress(java.lang.String address)
Sets the local address for the listener.
|
void |
setBacklog(int backlog)
Sets the listener queue depth.
|
void |
setClientQueueSize(int clientQueueSize)
Sets the event queue size used for each client connection.
|
void |
setPort(int port)
Sets the local port for the listener.
|
void |
start() |
void |
stop() |
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public static final int DEFAULT_BACKLOG
ServerSocket
backlogpublic static final int DEFAULT_CLIENT_QUEUE_SIZE
public void start()
start
in interface LifeCycle
start
in class AppenderBase<E>
public void stop()
stop
in interface LifeCycle
stop
in class AppenderBase<E>
public int getPort()
public void setPort(int port)
port
- the local port to setpublic int getBacklog()
This represents the number of connected clients whose connections have not yet been accepted.
ServerSocket
public void setBacklog(int backlog)
This represents the number of connected clients whose connections have not yet been accepted.
backlog
- the queue depth to setServerSocket
public java.lang.String getAddress()
public void setAddress(java.lang.String address)
address
- a host name or a string representation of an IP addresspublic int getClientQueueSize()
public void setClientQueueSize(int clientQueueSize)
clientQueueSize
- the queue size to setCopyright © 2010 - 2020 Adobe. All Rights Reserved