com.netflix.eventbus.spi
Class InvalidSubscriberException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.netflix.eventbus.spi.InvalidSubscriberException
- All Implemented Interfaces:
- java.io.Serializable
public class InvalidSubscriberException
- extends java.lang.Exception
Thrown if the subscriber registered with the EventBus is invalid. A subscriber will be
invalid if
- The method annotated with
Subscribe does not contain one and only one argument.
- The method uses a batching strategy other than
Subscribe.BatchingStrategy.None and
does not have the argument as Iterable
- If the subscriber uses batching and does not provide a batch size > 1
- If the subscriber uses batching and does not provide a batch age.
- See Also:
- Serialized Form
|
Constructor Summary |
InvalidSubscriberException(java.lang.Class<?> subscriberClass,
java.util.Map<java.lang.reflect.Method,java.lang.String> errors)
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InvalidSubscriberException
public InvalidSubscriberException(java.lang.Class<?> subscriberClass,
java.util.Map<java.lang.reflect.Method,java.lang.String> errors)
getOffendingMethods
public java.util.Set<java.lang.reflect.Method> getOffendingMethods()
getSubscriberClass
public java.lang.Class<?> getSubscriberClass()