diff --git a/src/main/scala/com/comcast/xfinity/sirius/api/Sirius.scala b/src/main/scala/com/comcast/xfinity/sirius/api/Sirius.scala index a917314e..d6751c05 100644 --- a/src/main/scala/com/comcast/xfinity/sirius/api/Sirius.scala +++ b/src/main/scala/com/comcast/xfinity/sirius/api/Sirius.scala @@ -17,6 +17,8 @@ package com.comcast.xfinity.sirius.api import java.util.concurrent.Future +@deprecated(message = "Please upgrade to using com.comcast.xfinity.sirius.api.api1Dot2.Sirius1Dot2 instead", + since = "1.2.0") trait Sirius { /** diff --git a/src/main/scala/com/comcast/xfinity/sirius/api/api1Dot2/Sirius1Dot2.scala b/src/main/scala/com/comcast/xfinity/sirius/api/api1Dot2/Sirius1Dot2.scala new file mode 100644 index 00000000..ad41e3d0 --- /dev/null +++ b/src/main/scala/com/comcast/xfinity/sirius/api/api1Dot2/Sirius1Dot2.scala @@ -0,0 +1,35 @@ +/** + * Copyright 2014 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.comcast.xfinity.sirius.api.api1Dot2 + +import com.comcast.xfinity.sirius.api.{Sirius => Sirius1Dot1} + +/** + * Methods added to the abstract Sirius interface in the 1.2.x series release(s). + */ +trait Sirius1Dot2Extensions { + + /** + * Terminate this instance, including shutting down all internal running Actors. + */ + def shutdown(): Unit +} + +/** + * Enhanced abstract Sirius interface made available in the 1.2.x series release(s). + */ +trait Sirius1Dot2 extends Sirius1Dot1 with Sirius1Dot2Extensions +