P
- proxy typeT
- return typepublic abstract class AbstractRequest<P extends BaseProxy,T> extends Object implements Request<T>, InstanceRequest<P,T>
Request
. Each request stores a
DeltaValueStoreJsonImpl
.Modifier and Type | Field and Description |
---|---|
protected Set<String> |
propertyRefs
Used by generated subtypes.
|
protected AbstractRequestContext |
requestContext |
Modifier | Constructor and Description |
---|---|
protected |
AbstractRequest(AbstractRequestContext requestContext) |
Modifier and Type | Method and Description |
---|---|
void |
fire()
Submit this request.
|
void |
fire(Receiver<? super T> receiver)
Convenience method equivalent to calling
to(...).fire() . |
Set<String> |
getPropertyRefs()
Returns the properties.
|
RequestContext |
getRequestContext()
Returns the RequestContext associated with the Request.
|
RequestData |
getRequestData() |
protected abstract RequestData |
makeRequestData() |
RequestContext |
to(Receiver<? super T> receiver)
Specify the object that will receive the result of the method invocation.
|
Request<T> |
using(P instanceObject)
This method comes from the
InstanceRequest
interface. |
Request<T> |
with(String... propertyRefs)
Request additional reference properties to fetch with the return value.
|
protected final AbstractRequestContext requestContext
protected AbstractRequest(AbstractRequestContext requestContext)
public void fire()
Request
public void fire(Receiver<? super T> receiver)
Request
to(...).fire()
.public RequestContext getRequestContext()
Request
getRequestContext
in interface Request<T>
public RequestData getRequestData()
public RequestContext to(Receiver<? super T> receiver)
Request
to
in interface Request<T>
receiver
- a Receiver
instanceRequestContext
instancepublic Request<T> using(P instanceObject)
InstanceRequest
interface. Instance methods place the instance in the first parameter slot.public Request<T> with(String... propertyRefs)
Request
protected abstract RequestData makeRequestData()
Copyright © 2016. All rights reserved.