Package com.floragunn.signals.accounts
Class AccountRegistry
- java.lang.Object
-
- com.floragunn.signals.accounts.AccountRegistry
-
public class AccountRegistry extends Object
-
-
Constructor Summary
Constructors Constructor Description AccountRegistry(SignalsSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(org.elasticsearch.client.Client client)<T extends Account>
TlookupAccount(String id, Class<T> accountClass)AccountlookupAccount(String id, String accountType)voidupdateAtomic(org.elasticsearch.client.Client client)
-
-
-
Constructor Detail
-
AccountRegistry
public AccountRegistry(SignalsSettings settings)
-
-
Method Detail
-
init
public void init(org.elasticsearch.client.Client client) throws SignalsInitializationException- Throws:
SignalsInitializationException
-
updateAtomic
public void updateAtomic(org.elasticsearch.client.Client client) throws IOException- Throws:
IOException
-
lookupAccount
public <T extends Account> T lookupAccount(String id, Class<T> accountClass) throws NoSuchAccountException
- Throws:
NoSuchAccountException
-
lookupAccount
public Account lookupAccount(String id, String accountType) throws NoSuchAccountException
- Throws:
NoSuchAccountException
-
-