- java.lang.Object
-
- swim.concurrent.PushRequest<T>
-
- All Implemented Interfaces:
PullRequest<T>
public class PushRequest<T> extends Object implements PullRequest<T>
-
-
Constructor Summary
Constructors Constructor Description PushRequest(T value)
PushRequest(T value, float prio)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
drop(Throwable reason)
T
get()
float
prio()
void
pull(PullContext<? super T> context)
boolean
stay(StayContext context, int backlog)
-
-
-
Method Detail
-
get
public final T get()
-
prio
public final float prio()
- Specified by:
prio
in interfacePullRequest<T>
-
pull
public void pull(PullContext<? super T> context)
- Specified by:
pull
in interfacePullRequest<T>
-
drop
public void drop(Throwable reason)
- Specified by:
drop
in interfacePullRequest<T>
-
stay
public boolean stay(StayContext context, int backlog)
- Specified by:
stay
in interfacePullRequest<T>
-
-