Top Description Inners Fields Constructors Methods
jnr.unixsocket

public final Class UnixSocketOptions

extends Object
Class Inheritance
Imports
java.net.SocketOption

Defines common socket options for AF_UNIX sockets.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public static final SocketOption<Boolean>
SO_KEEPALIVE

Keep connection alive.

public static final SocketOption<Boolean>
SO_PASSCRED

Enable credential transmission.

public static final SocketOption<Credentials>
SO_PEERCRED

Fetch peer credentials.

public static final SocketOption<Integer>
SO_RCVBUF

Get/Set size of the socket receive buffer.

public static final SocketOption<Integer>
SO_RCVTIMEO

Get/Set receive timeout.

public static final SocketOption<Integer>
SO_SNDBUF

Get/Set size of the socket send buffer.

public static final SocketOption<Integer>
SO_SNDTIMEO

Get/Set send timeout.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SO_KEEPALIVEback to summary
public static final SocketOption<Boolean> SO_KEEPALIVE

Keep connection alive.

SO_PASSCREDback to summary
public static final SocketOption<Boolean> SO_PASSCRED

Enable credential transmission.

SO_PEERCREDback to summary
public static final SocketOption<Credentials> SO_PEERCRED

Fetch peer credentials.

SO_RCVBUFback to summary
public static final SocketOption<Integer> SO_RCVBUF

Get/Set size of the socket receive buffer.

SO_RCVTIMEOback to summary
public static final SocketOption<Integer> SO_RCVTIMEO

Get/Set receive timeout.

SO_SNDBUFback to summary
public static final SocketOption<Integer> SO_SNDBUF

Get/Set size of the socket send buffer.

SO_SNDTIMEOback to summary
public static final SocketOption<Integer> SO_SNDTIMEO

Get/Set send timeout.

Constructor Detail

UnixSocketOptionsback to summary
public UnixSocketOptions()
jnr.unixsocket back to summary

private Class UnixSocketOptions.GenericOption<T>

extends Object
implements SocketOption<T>
Class Inheritance
All Implemented Interfaces
java.net.SocketOption

Field Summary

Modifier and TypeField and Description
private final String
private final Class<T>

Constructor Summary

AccessConstructor and Description
pack-priv
GenericOption(String name, Class<T> type)

Method Summary

Modifier and TypeMethod and Description
public String
name()

Implements java.net.SocketOption.name.

Returns the name of the socket option.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public Class<T>
type()

Implements java.net.SocketOption.type.

Returns the type of the socket option value.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

nameback to summary
private final String name
typeback to summary
private final Class<T> type

Constructor Detail

GenericOptionback to summary
pack-priv GenericOption(String name, Class<T> type)

Method Detail

nameback to summary
public String name()

Implements java.net.SocketOption.name.

Doc from java.net.SocketOption.name.

Returns the name of the socket option.

Returns:String

the name of the socket option

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
typeback to summary
public Class<T> type()

Implements java.net.SocketOption.type.

Doc from java.net.SocketOption.type.

Returns the type of the socket option value.

Returns:Class<T>

the type of the socket option value

Annotations
@Override