public interface VersionedRoute
removedIn()
is valid from validFrom()
inclusive up to the latest version of the API. A com.spotify.apollo.route.VersionedRoute with a value for
removedIn()
is valid in the range [validFrom()
, removedIn()
). That is,
removedIn()
defines the first version in which it is no longer valid.Modifier and Type | Method and Description |
---|---|
static VersionedRoute |
of(Route<AsyncHandler<Response<okio.ByteString>>> route)
Create a new com.spotify.apollo.route.VersionedRoute, which is valid from version 0.
|
Optional<Integer> |
removedIn()
The first version in which this route is no longer valid.
|
VersionedRoute |
removedIn(int removedIn)
Return a com.spotify.apollo.route.VersionedRoute based on the current one, but removed in the specified version.
|
Route<AsyncHandler<Response<okio.ByteString>>> |
route()
Base route that should be mapped to some versions.
|
int |
validFrom()
The first version in which this route is valid
|
VersionedRoute |
validFrom(int validFrom)
Return a com.spotify.apollo.route.VersionedRoute based on the current one, but valid from the specified version.
|
Route<AsyncHandler<Response<okio.ByteString>>> route()
int validFrom()
VersionedRoute validFrom(int validFrom)
VersionedRoute removedIn(int removedIn)
static VersionedRoute of(Route<AsyncHandler<Response<okio.ByteString>>> route)
Copyright © 2016. All rights reserved.