public enum GelfTransports extends Enum<GelfTransports>
GelfTransport.| Modifier and Type | Method and Description |
|---|---|
static GelfTransport |
create(GelfConfiguration config)
Creates a
GelfTransport from the given configuration. |
static GelfTransport |
create(GelfTransports transport,
GelfConfiguration config)
Creates a
GelfTransport from the given protocol and configuration. |
static GelfTransports |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GelfTransports[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GelfTransports TCP
public static final GelfTransports UDP
public static GelfTransports[] values()
for (GelfTransports c : GelfTransports.values()) System.out.println(c);
public static GelfTransports valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static GelfTransport create(GelfTransports transport, GelfConfiguration config)
GelfTransport from the given protocol and configuration.transport - the transport protocol to useconfig - the GelfConfiguration to pass to the transportGelfTransportpublic static GelfTransport create(GelfConfiguration config)
GelfTransport from the given configuration.config - the GelfConfiguration to pass to the transportGelfTransportCopyright © 2016 TORCH. All rights reserved.