Package org.apache.bookkeeper.bookie
Class LastAddConfirmedUpdateNotification
- java.lang.Object
-
- org.apache.bookkeeper.bookie.LastAddConfirmedUpdateNotification
-
- All Implemented Interfaces:
Recyclable
public class LastAddConfirmedUpdateNotification extends java.lang.Object implements Recyclable
A signal object is used for notifying the observers when theLastAddConfirmed
is advanced.The signal object contains the latest
LastAddConfirmed
and when theLastAddConfirmed
is advanced.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.function.Function<java.lang.Long,LastAddConfirmedUpdateNotification>
FUNC
static RecyclableArrayList.Recycler<Watcher<LastAddConfirmedUpdateNotification>>
WATCHER_RECYCLER
-
Constructor Summary
Constructors Constructor Description LastAddConfirmedUpdateNotification(io.netty.util.Recycler.Handle<LastAddConfirmedUpdateNotification> handle)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.util.Recycler.Handle<LastAddConfirmedUpdateNotification>
getHandle()
long
getLastAddConfirmed()
long
getTimestamp()
static LastAddConfirmedUpdateNotification
of(long lastAddConfirmed)
void
recycle()
Recycle the instance.
-
-
-
Field Detail
-
FUNC
public static final java.util.function.Function<java.lang.Long,LastAddConfirmedUpdateNotification> FUNC
-
WATCHER_RECYCLER
public static final RecyclableArrayList.Recycler<Watcher<LastAddConfirmedUpdateNotification>> WATCHER_RECYCLER
-
-
Constructor Detail
-
LastAddConfirmedUpdateNotification
public LastAddConfirmedUpdateNotification(io.netty.util.Recycler.Handle<LastAddConfirmedUpdateNotification> handle)
-
-
Method Detail
-
of
public static LastAddConfirmedUpdateNotification of(long lastAddConfirmed)
-
recycle
public void recycle()
Description copied from interface:Recyclable
Recycle the instance.- Specified by:
recycle
in interfaceRecyclable
-
getHandle
public io.netty.util.Recycler.Handle<LastAddConfirmedUpdateNotification> getHandle()
-
getLastAddConfirmed
public long getLastAddConfirmed()
-
getTimestamp
public long getTimestamp()
-
-