Interface ResignPolicy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Policy governing whether a bot should resign incoming gameplay deliveries.
Consulted before strategy dispatch on all delivery types. When shouldResign()
returns true, the handler answers with a resigning response without invoking the
strategy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResignPolicyA policy that never requests resignation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the bot should resign the current delivery.
-
Field Details
-
NEVER
A policy that never requests resignation.
-
-
Method Details
-
shouldResign
boolean shouldResign()Returns whether the bot should resign the current delivery.- Returns:
trueto resign without calling strategy,falseto proceed to strategy
-