Package org.zalando.sprocwrapper
Annotation Interface SProcService
- Author:
- jmussler
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDefines how sharded writes will be handled.Class<?> boolean
-
Element Details
-
shardStrategy
Class<?> shardStrategy- Default:
org.zalando.sprocwrapper.sharding.VirtualShardKeyStrategy.class
-
namespace
String namespace- Default:
""
-
validate
boolean validate- Default:
false
-
shardedWriteTransaction
SProcService.WriteTransaction shardedWriteTransactionDefines how sharded writes will be handled. If set toSProcService.WriteTransaction.NONE, no transaction context will be created. If set toSProcService.WriteTransaction.ONE_PHASE, all errors during the sproc call will be rolled back. If set toSProcService.WriteTransaction.TWO_PHASE, all errors during sproc call and "prepare transaction" are rolled back. In the last case, the Postgres instance must be configured to manage 2-phase-commits (XA).- Default:
NONE
-