Changeset 10 for profileconnection/src/main/java
- Timestamp:
- 01/28/20 10:19:54 (5 years ago)
- Location:
- profileconnection/src/main/java/geniusweb/profileconnection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
profileconnection/src/main/java/geniusweb/profileconnection/ProfileInterface.java
r9 r10 1 1 package geniusweb.profileconnection; 2 3 import java.io.IOException; 2 4 3 5 import geniusweb.profile.Profile; … … 12 14 * @return the latest version of the profile. May change at any time, after 13 15 * someone updates the version on the server. Call to this may block 14 * for limited time if the profile is not yet available. May return 15 * null if the profile is not available. 16 */ 17 public Profile getProfile(); 16 * for limited time if the profile is not yet available. 17 * @throws IOException if profile can not be fetched */ 18 public Profile getProfile() throws IOException; 18 19 } -
profileconnection/src/main/java/geniusweb/profileconnection/WebsocketProfileConnector.java
r9 r10 69 69 70 70 @Override 71 public Profile getProfile() {71 public Profile getProfile() throws IOException { 72 72 int remaining_wait = TIMEOUT_MS; 73 73 try { … … 80 80 e); 81 81 } 82 if (profile == null) { 83 throw new IOException("Failed to fetch profile"); 84 } 82 85 return profile; 83 86 }
Note:
See TracChangeset
for help on using the changeset viewer.