public enum BatchingStrategy extends Enum<BatchingStrategy>
| Enum Constant and Description | 
|---|
ARRAY  | 
NEWLINES  | 
ONLY_EVENTS  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract int | 
batchEndLength()  | 
abstract int | 
batchStartLength()  | 
abstract int | 
separatorLength()  | 
static BatchingStrategy | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static BatchingStrategy[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
abstract int | 
writeBatchEnd(byte[] buffer,
             int bufferOffset)  | 
abstract int | 
writeBatchStart(byte[] buffer)  | 
abstract int | 
writeMessageSeparator(byte[] buffer,
                     int bufferOffset)  | 
public static final BatchingStrategy ARRAY
public static final BatchingStrategy NEWLINES
public static final BatchingStrategy ONLY_EVENTS
public static BatchingStrategy[] values()
for (BatchingStrategy c : BatchingStrategy.values()) System.out.println(c);
public static BatchingStrategy 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 abstract int batchStartLength()
public abstract int separatorLength()
public abstract int batchEndLength()
public abstract int writeBatchStart(byte[] buffer)
public abstract int writeMessageSeparator(byte[] buffer,
                                          int bufferOffset)
public abstract int writeBatchEnd(byte[] buffer,
                                  int bufferOffset)
Copyright © 2011–2018. All rights reserved.