public class ConnectionLoggerImpl extends java.lang.Object implements ConnectionLogger
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConnectionLoggerImpl.LogLifecycleListener
Additional interface logger sends its output to.
|
ConnectionLogger.ConnectionCloser, ConnectionLogger.Factory, ConnectionLogger.StreamListener| Constructor and Description |
|---|
ConnectionLoggerImpl(java.io.Writer logWriter,
ConnectionLoggerImpl.LogLifecycleListener lifecycleListener) |
| Modifier and Type | Method and Description |
|---|---|
ITerminate |
getConnectionTerminate() |
ConnectionLogger.StreamListener |
getIncomingStreamListener() |
ConnectionLogger.StreamListener |
getOutgoingStreamListener() |
void |
handleEos()
Notifies logger that EOS has been received from remote.
|
void |
setConnectionCloser(ConnectionLogger.ConnectionCloser connectionCloser)
Connection may allow the logger to close it.
|
void |
start()
Notifies logger that actual transmission is starting.
|
public ConnectionLoggerImpl(java.io.Writer logWriter,
ConnectionLoggerImpl.LogLifecycleListener lifecycleListener)
public ConnectionLogger.StreamListener getIncomingStreamListener()
getIncomingStreamListener in interface ConnectionLoggerpublic ConnectionLogger.StreamListener getOutgoingStreamListener()
getOutgoingStreamListener in interface ConnectionLoggerpublic void start()
ConnectionLoggerConnectionLogger.handleEos()
is guaranteed to be called.start in interface ConnectionLoggerpublic void handleEos()
ConnectionLoggerhandleEos in interface ConnectionLoggerpublic ITerminate getConnectionTerminate()
public void setConnectionCloser(ConnectionLogger.ConnectionCloser connectionCloser)
ConnectionLoggersetConnectionCloser in interface ConnectionLoggerCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.