public final class HystrixUtil extends Object
Constructor and Description |
---|
HystrixUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getBestEffortIsolatedKey(Class<?> commandClass)
Returns a command key with the higehst possible (best effort) level of user and tenant isolation.
|
static com.netflix.hystrix.HystrixCommandProperties.Setter |
getDefaultErpCommandProperties() |
static com.netflix.hystrix.HystrixCommand.Setter |
getDefaultErpCommandSetter(Class<?> type) |
static com.netflix.hystrix.HystrixCommand.Setter |
getDefaultErpCommandSetter(Class<?> commandClass,
com.netflix.hystrix.HystrixCommandProperties.Setter commandProperties) |
static String |
getDelimiter() |
static String |
getGlobalKey(Class<?> commandClass)
Returns a global command key without any isolation.
|
static String |
getTenantIsolatedKey(Class<?> commandClass)
Returns a tenant-isolated command key.
|
static String |
getTenantIsolatedOrGlobalKey(Class<?> commandClass)
Returns a tenant-isolated command key.
|
static String |
getUserIsolatedKey(Class<?> commandClass)
Returns a tenant- and user-isolated command key.
|
static String |
getUserOrTenantIsolatedKey(Class<?> commandClass)
Returns a tenant- and user-isolated command key.
|
public static String getDelimiter()
public static String getGlobalKey(Class<?> commandClass)
public static String getTenantIsolatedKey(Class<?> commandClass) throws TenantNotAvailableException
TenantNotAvailableException
public static String getUserIsolatedKey(Class<?> commandClass) throws UserNotAuthenticatedException
UserNotAuthenticatedException
public static String getUserOrTenantIsolatedKey(Class<?> commandClass) throws TenantNotAvailableException
TenantNotAvailableException
public static String getTenantIsolatedOrGlobalKey(Class<?> commandClass)
public static String getBestEffortIsolatedKey(Class<?> commandClass)
public static com.netflix.hystrix.HystrixCommand.Setter getDefaultErpCommandSetter(Class<?> type)
public static com.netflix.hystrix.HystrixCommand.Setter getDefaultErpCommandSetter(Class<?> commandClass, com.netflix.hystrix.HystrixCommandProperties.Setter commandProperties)
public static com.netflix.hystrix.HystrixCommandProperties.Setter getDefaultErpCommandProperties()
Copyright © 2018 SAP SE. All rights reserved.