mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 06:59:29 +00:00
docs: Improve Ambassador pattern description
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
*/
|
||||
package com.iluwatar.ambassador;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* Holds information regarding the status of the Remote Service.
|
||||
*
|
||||
@@ -36,13 +38,10 @@ package com.iluwatar.ambassador;
|
||||
public enum RemoteServiceStatus {
|
||||
FAILURE(-1);
|
||||
|
||||
@Getter
|
||||
private final long remoteServiceStatusValue;
|
||||
|
||||
RemoteServiceStatus(long remoteServiceStatusValue) {
|
||||
this.remoteServiceStatusValue = remoteServiceStatusValue;
|
||||
}
|
||||
|
||||
public long getRemoteServiceStatusValue() {
|
||||
return remoteServiceStatusValue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user