Java Code Examples for org.apache.bookkeeper.client.AsyncCallback#AddCallback

The following examples show how to use org.apache.bookkeeper.client.AsyncCallback#AddCallback . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BKLogSegmentEntryWriter.java    From distributedlog with Apache License 2.0 4 votes vote down vote up
@Override
public void asyncAddEntry(ByteBuf entry,
                          AsyncCallback.AddCallback callback, Object ctx) {
    lh.asyncAddEntry(entry, callback, ctx);
}
 
Example 2
Source File: BKLogSegmentEntryWriter.java    From distributedlog with Apache License 2.0 4 votes vote down vote up
@Override
public void asyncAddEntry(byte[] data, int offset, int length,
                          AsyncCallback.AddCallback callback, Object ctx) {
    lh.asyncAddEntry(data, offset, length, callback, ctx);
}
 
Example 3
Source File: LogSegmentEntryWriter.java    From distributedlog with Apache License 2.0 2 votes vote down vote up
/**
 * Async add entry to the log segment.
 *
 *  <p>The implementation semantic follows
 * {@link org.apache.bookkeeper.client.LedgerHandle#asyncAddEntry(
 * byte[], int, int, AsyncCallback.AddCallback, Object)}
 *
 * @param entry
 *          data to add
 * @param callback
 *          callback
 * @param ctx
 *          ctx
 * @see org.apache.bookkeeper.client.LedgerHandle#asyncAddEntry(
 * byte[], int, int, AsyncCallback.AddCallback, Object)
 */
void asyncAddEntry(ByteBuf entry,
                   AsyncCallback.AddCallback callback, Object ctx);
 
Example 4
Source File: LogSegmentEntryWriter.java    From distributedlog with Apache License 2.0 2 votes vote down vote up
/**
 * Async add entry to the log segment.
 * <p>The implementation semantic follows
 * {@link org.apache.bookkeeper.client.LedgerHandle#asyncAddEntry(
 * byte[], int, int, AsyncCallback.AddCallback, Object)}
 *
 * @param data
 *          data to add
 * @param offset
 *          offset in the data
 * @param length
 *          length of the data
 * @param callback
 *          callback
 * @param ctx
 *          ctx
 * @see org.apache.bookkeeper.client.LedgerHandle#asyncAddEntry(
 * byte[], int, int, AsyncCallback.AddCallback, Object)
 */
void asyncAddEntry(byte[] data, int offset, int length,
                   AsyncCallback.AddCallback callback, Object ctx);