public class EventProducer
extends java.lang.Object
This class only verifies the suitability of the method and event type if something fails. Callers are expected to verify their uses of this class.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
void |
invalidate()
If invalidated, will subsequently refuse to produce events.
|
boolean |
isValid() |
java.lang.Object |
produceEvent()
Invokes the wrapped producer method.
|
java.lang.String |
toString() |
public boolean isValid()
public void invalidate()
public java.lang.Object produceEvent()
throws java.lang.reflect.InvocationTargetException
java.lang.IllegalStateException - if previously invalidated.java.lang.reflect.InvocationTargetException - if the wrapped method throws any Throwable that is not
an Error (Errors are propagated as-is).public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object