-
Notifications
You must be signed in to change notification settings - Fork 104
Make ServiceApiSettings provider interfaces public #75
Conversation
Make ChannelProvider, ExecutorProvider and CredentialsProvider interfaces public. This allows the ApiSettings object to be constructed without instantiating the channel, executor or credentials until they are required by the Api object. Pre-push hook installed. Change-Id: I2b88beb112c24e8e35d5d58b4883bd4be0d15706
Pre-push hook installed. Change-Id: I6742fae6a8b1052ba1d5a9fc6bcebb90fa87cd7e
| * service. | ||
| */ | ||
| interface CredentialsProvider { | ||
| public interface CredentialsProvider { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Moved interfaces to separate files Added shouldAutoClose parameter to ExecutorProvider Added OperationNotSupportedException to ExecutorProvider and ChannelProvider when a fixed executor/channel is accessed multiple times. Updated documentation Pre-push hook installed. Change-Id: Icb29408ad0854908932675723a2cc831d0111949
Removed exceptions not thrown Updated params in javadocs Fixed broken doc links Pre-push hook installed. Change-Id: I2a259ea65dd9a9094a67fdf8d78ad820abf3d7e2
|
PTAL |
| * | ||
| * If the {@link ExecutorProvider} is configured to return a fixed | ||
| * {@link ScheduledExecutorService} object and to return shouldAutoClose as true, then after the | ||
| * first call to {@link #getExecutor}, subsequent calls should throw an {@link ExecutorProvider}. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Changed OperationNotSupportedException to IllegalStateException Fixed doc errors Pre-push hook installed. Change-Id: I33529e918b1e22ce643c03dd46f207a16adfe8ad
|
PTAL |
Added unit tests Removed getOrBuild methods Set executorProvider in ServiceApiSettings constructor Pre-push hook installed. Change-Id: I193be2e6a6ad2e35b5f1def5182e19d9dc14ab29
| * acquired yet, then they will be acquired when this function is called. | ||
| */ | ||
| public Credentials getCredentials() throws IOException { | ||
| public Credentials getOrBuildCredentials() throws IOException { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Pre-push hook installed. Change-Id: Icd5d157d0d164f8eb2536778fbafbea7c5c546a2
Pre-push hook installed. Change-Id: I10039ae000dae902b30a9df43fdd5c1316191281
|
PTAL |
|
|
||
| /** | ||
| * Get the channel to be used to connect to the service. The first time this is called, if the | ||
| * channel does not already exist, it will be created. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Pre-push hook installed. Change-Id: I4ca6d7d72ad1941846bb9afcb68ee7d518317e3a
|
PTAL |
|
LGTM |
Make ChannelProvider, ExecutorProvider and CredentialsProvider
interfaces public. This allows the ApiSettings object to be
constructed without instantiating the channel, executor or
credentials until they are required by the Api object.