public interface DigitOptions
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_IS_FLUSH_BUFFER |
static int |
DEFAULT_NUMBER_OF_DIGITS |
static String |
DEFAULT_TERMINATION_KEY |
static int |
DEFAULT_TIMEOUT_MILLISECONDS |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfDigits()
Returns the number of digits to be collected.
|
String |
getTerminationKey()
Returns the termination key that stops a digit collection operation.
|
int |
getTimeout()
Returns the number of milliseconds to wait to receive the first digit.
|
boolean |
isFlushBuffer()
Returns true if the digit buffer will be flushed before digit collection.
|
DigitOptions |
setFlushBuffer(boolean isFlush)
Sets the parameter used to determine when the buffer should be flushed.
|
DigitOptions |
setNumberOfDigits(int numberOfDigits)
Sets the number of digits that must be collected before an event is generated.
|
DigitOptions |
setTerminationKey(String terminationKey)
Sets the termination key that stops a digit collection operation.
|
DigitOptions |
setTimeout(int timeout)
Sets the number of milliseconds to wait to receive the first digit.
|
static final boolean DEFAULT_IS_FLUSH_BUFFER
static final int DEFAULT_TIMEOUT_MILLISECONDS
static final int DEFAULT_NUMBER_OF_DIGITS
static final String DEFAULT_TERMINATION_KEY
int getNumberOfDigits()
DigitOptions setNumberOfDigits(int numberOfDigits)
numberOfDigits
: 1.numberOfDigits
- the number of digits to collectString getTerminationKey()
DigitOptions setTerminationKey(String terminationKey)
terminationKey
: '#' symbol.terminationKey
- a digit '0-9', '*' or '#' symbolint getTimeout()
DigitOptions setTimeout(int timeout)
timeout
- the time to wait to receive the first digit. The same value
is used for the inter-digit timeout and the extra digit timeout.
Default value for timeout
: 10000 milliseconds.boolean isFlushBuffer()
DigitOptions setFlushBuffer(boolean isFlush)
isFlush
: false.isFlush
- the buffer is flushed before each collection when set to trueCopyright © 2014 Avaya. All Rights Reserved.