Last change
on this file since 47 was 47, checked in by bart, 3 years ago |
Refactor to help reusing partiesserver.
|
File size:
971 bytes
|
Rev | Line | |
---|
[47] | 1 | package geniusweb.deadline;
|
---|
| 2 |
|
---|
| 3 | import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
---|
| 4 | import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
|
---|
| 5 | import com.fasterxml.jackson.annotation.JsonSubTypes;
|
---|
| 6 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
---|
| 7 | import com.fasterxml.jackson.annotation.JsonTypeInfo.As;
|
---|
| 8 |
|
---|
| 9 | /**
|
---|
| 10 | * Deadline indicates how long a session will be allowed to run. So it contains
|
---|
| 11 | * "relative" data (relative to the unknown start time of the session)
|
---|
| 12 | *
|
---|
| 13 | */
|
---|
| 14 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = As.WRAPPER_OBJECT)
|
---|
| 15 | @JsonSubTypes({ @JsonSubTypes.Type(value = DeadlineRounds.class),
|
---|
| 16 | @JsonSubTypes.Type(value = DeadlineTime.class) })
|
---|
| 17 | @JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE, isGetterVisibility = Visibility.NONE)
|
---|
| 18 | public interface Deadline {
|
---|
| 19 | /**
|
---|
| 20 | *
|
---|
| 21 | * @return the duration of this deadline, measured in milliseconds
|
---|
| 22 | */
|
---|
| 23 | public Long getDuration();
|
---|
| 24 |
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.