|
Oracle Fusion Middleware Java API Reference for Oracle Event Processing for Oracle Java Embedded 11g Release 1 (11.1.1.7) E39906-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
int |
getCurrentSize() Returns the current (used) size of channel. |
int |
getMaxSize() Returns maximum size of channel. |
int |
getMaxThreads() Returns maximum number of threads that a channel should use for processing events. |
long |
getOfferTimeout() Returns the timeout value used for waiting up until space becomes available in the event queue. |
boolean |
isFailWhenRejected() Returns true if an event processing exception should be raised when event queue is full and no space is available after offer timeout expires. |
void |
setFailWhenRejected(boolean value) Raise an EventProcessingException if the event queue is full when the offer timeout expires. |
void |
setMaxSize(int size) Maximum number of events that a channel can hold at a time. |
void |
setMaxThreads(int maxThreads) Maximum number of threads that a channel should use for processing events. |
void |
setOfferTimeout(long timeout) Sets the timeout value used when the event queue is full and a pending insert (offer) is blocked. |
Method Detail |
public void setMaxSize(int size) throws java.beans.PropertyVetoException
maxThreads
is greater than zero.size
- - the maximum allowable number of retained eventspublic int getMaxSize()
maxThreads
is greater than zero.public int getCurrentSize()
public void setMaxThreads(int maxThreads)
threads
- - the number of worker threads to use.public int getMaxThreads()
public long getOfferTimeout()
public void setOfferTimeout(long timeout)
timeout
- offer timeoutpublic void setFailWhenRejected(boolean value)
The default value is false.
value
- true if exception should be raised when rejected, false if event should be dropped instead.public boolean isFailWhenRejected()
|
Copyright © 2007, 2013 Oracle and/or its affiliates. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |