AutoCloseable
, ByteBufferDestination
public class DatagramSocketManager extends AbstractSocketManager
count, LOGGER
host, inetAddress, port
byteBuffer, layout
Modifier | Constructor | Description |
---|---|---|
protected |
DatagramSocketManager(String name,
OutputStream os,
InetAddress inetAddress,
String host,
int port,
Layout<? extends Serializable> layout,
int bufferSize) |
The Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Map<String,String> |
getContentFormat() |
Gets this DatagramSocketManager's content format.
|
static DatagramSocketManager |
getSocketManager(String host,
int port,
Layout<? extends Serializable> layout,
int bufferSize) |
Obtain a SocketManager.
|
close, getCount, getLoggerContext, getName, hasManager, log, logDebug, logError, logWarn, narrow, release, stop, updateData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeOutputStream, createOutputStream, drain, flush, flushBuffer, flushDestination, getByteBuffer, getManager, getOutputStream, hasOutputStream, isOpen, releaseSub, setOutputStream, skipFooter, write, write, write, write, writeBytes, writeBytes, writeFooter, writeToDestination
protected DatagramSocketManager(String name, OutputStream os, InetAddress inetAddress, String host, int port, Layout<? extends Serializable> layout, int bufferSize)
name
- The unique name of the connection.os
- The OutputStream.inetAddress
- host
- The host to connect to.port
- The port on the host.layout
- The layoutbufferSize
- The buffer sizepublic static DatagramSocketManager getSocketManager(String host, int port, Layout<? extends Serializable> layout, int bufferSize)
host
- The host to connect to.port
- The port on the host.layout
- The layout.bufferSize
- The buffer size.public Map<String,String> getContentFormat()
getContentFormat
in class AbstractSocketManager
Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.