io.continual.flowcontrol.svcapi.BaseFlowControlCallContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of continualFlowControl Show documentation
Show all versions of continualFlowControl Show documentation
Continual's flow control system for event processing.
The newest version!
package io.continual.flowcontrol.svcapi;
import io.continual.flowcontrol.FlowControlCallContext;
import io.continual.flowcontrol.FlowControlCallContextBuilder;
import io.continual.iam.identity.Identity;
class BaseFlowControlCallContext implements FlowControlCallContext
{
public static class Builder implements FlowControlCallContextBuilder
{
public Builder ( )
{
}
@Override
public FlowControlCallContextBuilder asUser ( Identity i )
{
fUser = i;
return this;
}
@Override
public FlowControlCallContext build ()
{
return new BaseFlowControlCallContext ( this );
}
private Identity fUser;
}
@Override
public Identity getUser ()
{
return fUser;
}
private BaseFlowControlCallContext ( Builder b )
{
fUser = b.fUser;
}
private final Identity fUser;
}