Package org.cometd.oort
Interface OortPrimaryLong.Callback
-
- All Known Implementing Classes:
OortPrimaryLong.Callback.Adapter
- Enclosing class:
- OortPrimaryLong
public static interface OortPrimaryLong.Callback
Callback invoked when the result of the operation on the counter is available, or when the operation failed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
OortPrimaryLong.Callback.Adapter
Deprecated.useOortPrimaryLong.Callback
instead
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
failed(Object failure)
Callback method invoked when the operation on the counter failed.default void
succeeded(Long result)
Callback method invoked when the operation on the counter succeeded.
-
-
-
Method Detail
-
succeeded
default void succeeded(Long result)
Callback method invoked when the operation on the counter succeeded.- Parameters:
result
- the result of the operation
-
failed
default void failed(Object failure)
Callback method invoked when the operation on the counter failed.- Parameters:
failure
- the failure object
-
-