@InterfaceStability.Stable public class InterfaceAudience {
@InterfaceStability.Stable public interface AsyncCallback {
@Stable public class NamespaceBuilder {
@InterfaceStability.Stable interface AddCallback extends AddCallbackWithLatency {
/** * Annotation to inform users of how much to rely on a particular package, * class or method not changing over time. */ @InterfaceAudience.Public @InterfaceStability.Stable public class InterfaceStability { /** * Can evolve while retaining compatibility for minor release boundaries.; * can break compatibility only at major release (ie. at m.0). */ @Documented public @interface Stable {}; /** * Evolving, but can break compatibility at minor release (i.e. m.x) */ @Documented public @interface Evolving {}; /** * No guarantee is provided as to reliability or stability across any * level of release granularity. */ @Documented public @interface Unstable {}; private InterfaceStability() {} }
/** * Async Callback for reading entries from ledgers. * * @since 4.0 */ @InterfaceAudience.Public @InterfaceStability.Stable interface ReadCallback { /** * Callback declaration. * * @param rc * return code * @param lh * ledger handle * @param seq * sequence of entries * @param ctx * context object */ void readComplete(int rc, LedgerHandle lh, Enumeration<LedgerEntry> seq, Object ctx); }
/** * Async Callback for long polling read request. * * @since 4.5 */ @InterfaceAudience.Public @InterfaceStability.Stable interface ReadLastConfirmedAndEntryCallback { /** * Callback definition for bookie operation that allows reading the last add confirmed * along with an entry within the last add confirmed range. * * @param rc Return code * @param lastConfirmed The entry id of the last confirmed write or * {@link LedgerHandle#INVALID_ENTRY_ID INVALID_ENTRY_ID} * if no entry has been confirmed * @param entry The entry since the lastAddConfirmed entry that was specified when the request * was initiated * @param ctx context object */ void readLastConfirmedAndEntryComplete(int rc, long lastConfirmed, LedgerEntry entry, Object ctx); }
/** * Async Callback for reading LAC for ledgers. * * @since 4.0 */ @InterfaceAudience.Public @InterfaceStability.Stable interface ReadLastConfirmedCallback { /** * Callback definition for bookie recover operations. * * @param rc Return code * @param lastConfirmed The entry id of the last confirmed write or * {@link LedgerHandle#INVALID_ENTRY_ID INVALID_ENTRY_ID} * if no entry has been confirmed * @param ctx * context object */ void readLastConfirmedComplete(int rc, long lastConfirmed, Object ctx); }
/** * Async Callback for closing ledgers. * * @since 4.0 */ @InterfaceAudience.Public @InterfaceStability.Stable interface CloseCallback { /** * Callback definition. * * @param rc * return code * @param lh * ledger handle * @param ctx * context object */ void closeComplete(int rc, LedgerHandle lh, Object ctx); }
/** * Class that may be configured with a {@link Configuration}. */ @Public @Stable public interface Configurable { /** * Set the configuration to be used by this object. * * @param conf * Configuration object to use */ void setConf(Configuration conf); /** * Return the configuration used by this object. * * @return configuration used by this object. */ Configuration getConf(); }
/** * Async Callback for checking if a ledger is closed. * * @since 4.0 */ @InterfaceAudience.Public @InterfaceStability.Stable interface IsClosedCallback { /** * Callback definition for isClosed operation. * * @param rc * return code * @param isClosed * true if ledger is closed */ void isClosedComplete(int rc, boolean isClosed, Object ctx); } }
/** * Async Callback for deleting ledgers. * * @since 4.0 */ @InterfaceAudience.Public @InterfaceStability.Stable interface DeleteCallback { /** * Callback definition for delete operations. * * @param rc * return code * @param ctx * context object */ void deleteComplete(int rc, Object ctx); }
/** * Async Callback for opening ledgers. * * @since 4.0 */ @InterfaceAudience.Public @InterfaceStability.Stable interface OpenCallback { /** * Callback for asynchronous call to open ledger. * * @param rc * Return code * @param lh * ledger handle * @param ctx * context object */ void openComplete(int rc, LedgerHandle lh, Object ctx); }
/** * Async Callback for creating ledgers. * * @since 4.0 */ @InterfaceAudience.Public @InterfaceStability.Stable interface CreateCallback { /** * Declaration of callback method. * * @param rc * return status * @param lh * ledger handle * @param ctx * context object */ void createComplete(int rc, LedgerHandle lh, Object ctx); }
/** * Async Callback for updating LAC for ledgers. * * @since 4.5 */ @InterfaceAudience.Public @InterfaceStability.Stable interface AddLacCallback { /** * Callback declaration. * * @param rc * return code * @param lh * ledger handle * @param ctx * context object */ void addLacComplete(int rc, LedgerHandle lh, Object ctx); }
/** * Async Callback for recovering ledgers. * * @since 4.0 */ @InterfaceAudience.Public @InterfaceStability.Stable interface RecoverCallback { /** * Callback definition for bookie recover operations. * * @param rc * return code * @param ctx * context object */ void recoverComplete(int rc, Object ctx); }